package com.ChengXiZi.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * 用户-社区关系表视图VO
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "UserConmmunity视图对象", description = "用户-社区关系表视图VO")
public class UserCommunityVO {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("社区id")
    private Long communityId;

    @ApiModelProperty("角色")
    private Integer role;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("加入时间")
    private LocalDateTime joinTime;

    @ApiModelProperty("状态")
    private Integer status;
}